package com.brillilab.service.module.message.template.impl.method;

import com.brillilab.service.module.message.template.AbstractMessageTemplate;
import com.brillilab.service.module.message.template.enums.MessageTypeEnum;
import lombok.Data;

/**
 * @author zlb
 * @Title: RecommendMethodModifyAuditPassTemp
 * @ProjectName brill_lab
 * @Description: 成员的推荐方法被修改后审核通过
 * @date 2019/5/27 19:44
 */
@Data
public class RecommendMethodModifyAuditPassTemp extends AbstractMessageTemplate {
    private String methodName;

    /**
     * 成员的推荐方法被修改后审核通过
     *
     * @param labId       实验室ID
     * @param receiverId  接收人ID
     * @param labMemberId 接收者实验室成员Id
     * @param methodName  方法名称
     */
    public RecommendMethodModifyAuditPassTemp(Long labId, Long receiverId, Long labMemberId, String methodName,Long referId) {
        super(labId, receiverId);
        super.setType(MessageTypeEnum.RecommendMethodModifyAuditPass.getValue());
        super.setTitle("您推荐的方法已被修改并审核通过");
        String content = String.format("<span>您推荐的</span><span style='color:#F6AC2D'>%s</span><span>被管理员进行了修改并审核通过。</span>", methodName);
        super.setContent(content);
        super.setAppContent(String.format("您推荐的%s被管理员进行了修改并审核通过", methodName));
        super.setReferId(referId);
        this.labMemberId=labMemberId;
        this.methodName = methodName;
    }

}
